package edu.ubb.bibliospring.backend.service;

import edu.ubb.bibliospring.backend.exception.BiblioSpringServiceException;
import edu.ubb.bibliospring.backend.model.Author;

import javax.ejb.Remote;
import java.util.List;

@Remote
public interface AuthorService {
   
    List<Author> getAll() throws BiblioSpringServiceException;

    Author getById(Long id) throws BiblioSpringServiceException;

    public Author insertAuthor(Author author) throws BiblioSpringServiceException;
    
    void deleteAuthor(Author author) throws BiblioSpringServiceException;
}
